<!doctype html>
<html lang="en">
<head>
    <asset:stylesheet src="homer/vendor/fontawesome/css/font-awesome.min.css" />
    <asset:stylesheet src="styles/css/index.css"/>
    <asset:stylesheet src="styles/css/account.css" />
    <asset:stylesheet src="styles/css/common.css" />
    <asset:stylesheet src="homer/fonts/pe-icon-7-stroke/css/helper.css" />
    <asset:stylesheet src="homer/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css" />

</head>
<style>
.imageTabs{
    float: left;
    margin-left: 10px;
    margin-top: 13px;
}
.logoFont{
    float: left;
    font-size: 14px;
    font-weight: bold;
    color: #34495e;
    margin-left: 4px;
    margin-top: 2px;
}
.logoFont_1{
    float: left;
    font-size: 14px;
    font-weight: bold;
    color: #34495e;
    margin-left: 4px;
    margin-top: 2px;
    position: absolute;
    width: 200px;
    left: 77px;
    top: -8px;
}
.logoFont_2{
    float: left;
    font-size: 14px;
    font-weight: bold;
    color: #34495e;
    margin-left: 4px;
    margin-top: 2px;
    position: absolute;
    width:200px;
    left: 77px;
    top: 10px;
}
@media print{
    body{
        width:100%;
    }
    a:after {
        content: '.';
        height: 0;
        visibility: hidden;
        display: block;
        clear: both;
    }
    .nodisplay{
        display:none;
    }
}
.dropdown i{
    line-height: 30px;
}
</style>
<body class="fixed-navbar fixed-sidebar fixed-footer nodisplay "  data-ma-theme="green">
<div class="splash">
    %{--<div class="color-line"></div>--}%

    <div class="splash-title">
        <h1>PLS</h1>

        <div class="spinner">
            <div class="rect1"></div>

            <div class="rect2"></div>

            <div class="rect3"></div>

            <div class="rect4"></div>

            <div class="rect5"></div>
        </div>
    </div>
</div>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top navLeftSize nodisplay" style="height: 56px">
    <div class="row" style="position: absolute;left: 7px;">
        <div class="navLeftFont">
            <div class="navLeftFontSize">
                <a href="/main/welcome">
                    <g:if test="${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.isGD()}">
                        <asset:image src="gd_logo.png" class=""/>
                    </g:if>
                    <g:elseif test="${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.isYC()}">
                        <asset:image src="yc_logo.png" class=""/>
                    </g:elseif>
                    <g:else>
                        <asset:image src="${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.profile?.logo?.split(',')[0]}" class="imageTabs"/>
                        <g:if test="${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.profile?.title?.contains(";")}">
                            <section class="logoFont_1">
                                ${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.profile?.title?.split(';')[0]}
                            </section>
                            <section class="logoFont_2">
                                ${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.profile?.title?.split(';')[1]}
                            </section>
                        </g:if>
                        <g:else>
                            <section class="logoFont">
                                ${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.profile?.title}
                            </section>
                        </g:else>
                    </g:else>
                </a>
            </div>
        </div>
    </div>
    <div class="PostionCenter">
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navSelect">
                <%menuList=com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.getMenuArr()%>
                <g:each in="${menuList?.findAll{it.parent==null && it.title!='待办事项'}}" var ='pit'>
                    <g:if test="${menuList?.findAll{it.parent==pit}.size()!=0}">
                        <li class="parentMenu">
                            <a class="page-scroll" id="menu_${pit.id}" href="${pit.url}" activeUrl="${pit.activeUrl}">${pit.title}</a>
                            <ul class="nav nav-second-level childMenu">
                                <g:each in="${menuList?.findAll{it.parent==pit}}" var="cit">
                                    <li>
                                        <a  id="menu_${cit.id}" href="${cit.url}" parentid="menu_${pit.id}" activeUrl="${cit.activeUrl}">${cit.title}</a>
                                        <ul class="nav nav-second-level childMenu2">
                                            <g:each in="${menuList?.findAll{it.parent==cit}}" var="cit1">
                                                <li>
                                                    <a  id="menu_${cit1.id}" href="${cit1.url}" parentid="menu_${cit.id}" activeUrl="${cit1.activeUrl}">${cit1.title}</a>
                                                </li>
                                            </g:each>
                                        </ul>
                                    </li>
                                </g:each>
                            </ul>
                        </li>
                    </g:if>
                    <g:else>
                        <li>
                            <a id="menu_${pit.id}" class="page-scroll" href="${pit.url}" activeUrl="${pit.activeUrl}">${pit.title} </a>
                        </li>
                    </g:else>
                </g:each>
            </ul>
        </div>
    </div>

    <div class="navbar-right navBack" id="header-right">
        %{--<ul class="nav navbar-nav no-borders">--}%
        %{--<li class="dropdown" style="display: flex;align-items: center;">--}%
        %{--<g:link controller="lologinNamegoff" style="font-size: 14px">--}%
        %{--<i class="fa fa-lg fa-sign-out"></i></g:link>--}%
        %{--<i class="fa fa-user-circle fa-2x" aria-hidden="true"></i>--}%
        %{--</li>--}%
        %{--<li id="loginName">--}%
        %{--<a class="page-scroll" href="#">${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.fullName}</a>--}%
        %{--<ul class="nav nav-second-level loginSelect" id="loginNameSel">--}%
        %{--<li>--}%
        %{--<a class="page-scroll" href="#" data-toggle="modal" data-target="#myModal8">修改密码</a>--}%
        %{--</li>--}%
        %{--<li>--}%
        %{--<g:link controller="logoff" style="font-size: 14px">--}%
        %{--退出--}%
        %{--</g:link>--}%
        %{--</li>--}%
        %{--</ul>--}%
        %{--</li>--}%
        %{--</ul>--}%

        <div class="navbar-right" style="margin-right: -9px;">
            <ul class="nav navbar-nav no-borders">



                <li class="dropdown">
                    <a class="dropdown-toggle label-menu-corner" href="#" data-toggle="dropdown" aria-expanded="false">
                        <i class="pe-7s-keypad fa-2x"></i>
                        <g:each in="${menuList}" var ='pit'>
                            <g:if test="${pit?.url == '/estate/estatePendingIndex'}">
                                <span class="label label-danger estatePendingCount" style="right: 12px;"></span>
                            </g:if>
                        </g:each>
                    </a>

                    <div class="dropdown-menu hdropdown bigmenu animated flipInX" style="width: 503px;">
                        <g:each in="${menuList?.findAll{it.parent==null && it.title=='待办事项'}}" var ='pit'>
                            <g:if test="${menuList?.findAll{it.parent==pit}.size()!=0}">
                                <g:each in="${menuList?.findAll{it.parent==pit}}" var="cit">
                                    <a class="pull-left" href="${cit?.url}">
                                        <i class="${cit?.icon}"></i>
                                        <h5>${cit?.title}</h5>
                                    </a>
                                </g:each>
                            </g:if>
                        </g:each>
                        %{--<a class="page-scroll pull-left" href="#" data-toggle="modal" data-target="#myModal8">--}%
                            %{--<i class="pe pe-7s-comment text-info"></i>--}%
                            %{--<h5>修改密码</h5>--}%
                        %{--</a>--}%
                    </div>
                </li>
                <!-- <li>
                    <a href="#" id="sidebar" class="right-sidebar-toggle">
                        <i class="pe-7s-upload pe-7s-news-paper fa-2x"></i>
                    </a>
                </li> -->

                <li id="loginName" style="width: 84px">
                    <a class="page-scroll" href="#"><i class="pe-7s-upload pe-rotate-90 fa-2x"></i></a>
                    <ul class="nav nav-second-level loginSelect" id="loginNameSel">
                        <li>
                            <a class="page-scroll" href="#" data-toggle="modal" data-target="#myModal8">修改密码</a>
                        </li>
                        <li>
                            <g:link controller="logoff" style="font-size: 14px">
                                退出
                            </g:link>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<input type="hidden" name="skin" id="skin" value="${com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.skin}">

%{--修改密码--}%
<div class="modal fade hmodal-info in" id="myModal8" tabindex="-1" role="dialog" aria-hidden="true" style="display: none; padding-right: 17px;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-body" style="height: 200px;">
                <div class="form-group" style=" margin-bottom: 10%"><label class="col-sm-2 control-label" >原密码</label>

                    <div class="col-sm-10"><input type="password" class="form-control newPsd" name="password"></div>
                </div>
                <div class="form-group" style="margin-bottom: 20%"><label class="col-sm-2 control-label" >新密码</label>

                    <div class="col-sm-10"><input type="password" class="form-control newPsd" name="password"></div>
                </div>
                <div class="form-group" ><label class="col-sm-2 control-label" >新密码</label>

                    <div class="col-sm-10"><input type="password" class="form-control newPsd" name="password"></div>
                </div>
                <p style="margin-left: 66px; color: red;" id="loginTS"></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="changePsd">确定更改</button>
            </div>
        </div>
    </div>
</div>
</body>
<asset:javascript src="layouts/layouts.js" />



</html>